package cn.wolfcode.luowowo.comment.domain;

import lombok.Getter;
import lombok.Setter;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.util.StringUtils;

import javax.lang.model.element.NestingKind;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * 景点的回复
 */
@Setter
@Getter
@Document("scenic_reply")
public class ScenicReply implements Serializable {
    @Id
    private String id;  //id
    private Long scenicId;  //景点id
    private String scenicName;  //景点
    private String commentId;
    private Long commentUserId;
    private String commentUsername;
    private Long userId;    //用户id
    private String username; //用户名
    private String userHeadUrl;   // 用户头像
//    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime; // 创建时间
    private String content;  // 评论内容
    private int thumbupnum;
    private int floor; // 楼层数
    private String parentReplyId;
    private ScenicReply parentReply; // 父级回复
}

